package com.zhengxiang.onlinexamination.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zhengxiang.onlinexamination.base.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * 预考试题记录(PreviewPaper)实体类
 *
 * @author makejava
 * @since 2023-03-19 16:34:35
 */
@Data
public class PreviewPaper extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 132031379590680030L;

    @TableId(type = IdType.AUTO)
    private Integer previewPaperId;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 试卷id
     */
    private Integer examPaperId;
    /**
     * 待考试卷id
     */
    private Integer waitPaperId;
    /**
     * 题目id
     */
    private Integer quId;
    /**
     * 题目类型
     */
    private Integer quType;
    /**
     * 题目序号
     */
    private Integer quSort;
    /**
     * 倒计时
     */
    private Integer countdownSecond;
    /**
     * 选择答案id
     */
    private String chooseAnswerId;
    /**
     * 勾选的选项
     */
    private String chooseOption;

    /**
     * 是否正确 1正确 -1错误
     * */
    private Integer isCorrect;
    /**
     * 正确答案的id
     */
    private String answerCorrect;

    /*正确的选项ABCD*/
    private String answerCorrectOption;
    /**
     * 简答题
     */
    private String shortAnswer;
    /**
     * 每题得分
     */
    private Integer quScore;
    /**
     * 本次得分
     */
    private Integer thisScore;


    private Date createTime;
    
    private Date updateTime;

    /**
     * 关联题目
     */
    @TableField(exist = false)
    private Qu qu;

}

